#include "ModRunOutput.h"
#include <QDebug>
#include "..\..\Visitor\VisitorDisplayLog.h"

CModRunOutput::CModRunOutput(IUIElement* pElement)
{
    m_pElement = pElement;
}

CModRunOutput::~CModRunOutput()
{
    
}

//输出信息;
void CModRunOutput::OutPut(std::initializer_list <QString> outList, int flag/* = 0*/)
{
    Q_UNUSED(flag);

    for (auto beg = outList.begin(); beg != outList.end(); beg++)
    {
        QString strOutRet = *beg;
        VisitorDisplayLog visiter(strOutRet, "ed_Log");
        if (m_pElement)
        {
            m_pElement->accept(visiter);
        }
    }

}

